import request from '@/utils/request'

export function getAllSupplyBrand() {
  return request({
      url: '/supplyBrand/findAll',
      method: 'get'
    }
  )
}

export function getSupplyBrandList(listQuery) {
  return request({
      url: '/supplyBrand/findList?currentPage=' + listQuery.page + '&pageSize=' + listQuery.limit,
      method: 'get'
    }
  )
}

export function getSupplyBrandById(id) {
  return request({
      url: '/supplyBrand/' + id,
      method: 'get'
    }
  )
}

export function addSupplyBrand(data) {
  return request({
      url: '/supplyBrand/add',
      method: 'post',
      data
    }
  )
}

export function delSupplyBrand(id) {
  return request({
      url: '/supplyBrand/delete/' + id,
      method: 'get',
    }
  )
}


export function updateSupplyBrand(data) {
  return request({
      url: '/supplyBrand/update/',
      method: 'post',
      data
    }
  )
}
